package com.poisonh.unifiedauth.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.poisonh.unifiedauth.R;
import com.zhy.autolayout.AutoRelativeLayout;

/**
 * 发现
 * Created by PoisonH on 2016/6/28.
 */
public class FindActivity extends BaseActivity implements View.OnClickListener
{
    private AutoRelativeLayout mArlLayout;
    private AutoRelativeLayout mArnameLayout;

    @Override
    protected void loadContentView(Bundle savedInstanceState)
    {
        setContentView(R.layout.activity_find);
        initTitleView();
        initView();
    }

    @Override
    protected void initView()
    {
        mRightBtn.setVisibility(View.GONE);
        setTitleTxt("发现");

        mArlLayout = (AutoRelativeLayout) findViewById(R.id.ar1_find_layout);
        mArnameLayout= (AutoRelativeLayout) findViewById(R.id.ar2_find_layout);

        mLeftBtn.setOnClickListener(this);
        mArlLayout.setOnClickListener(this);
        mArnameLayout.setOnClickListener(this);
    }

    @Override
    public void onClick(View v)
    {
        switch (v.getId())
        {
            case R.id.ib_left_btn:
                finish();
                break;
            case R.id.ar1_find_layout://密码箱
                startActivity(new Intent(FindActivity.this, PassWordBoxActivity.class));
                break;
            case R.id.ar2_find_layout://名片夹
                startActivity(new Intent(FindActivity.this, FriendsActivity.class));

        }
    }
}
